package com.li.temperature.chart.bean;

import android.content.Context;

import com.li.temperature.chart.R;
import com.li.temperature.chart.util.Config;

public class CurrentFileNode extends FileNode {

    public CurrentFileNode(Context mContext) {
        super(mContext);
        name = Config.CURRENT;
        path = Config.CURRENT_PATH;
        init();
    }

    @Override
    public void formatValueInt() {

    }

    @Override
    public void formatValueStr() {
        info = String.format("%s - %s : %d ", Config.CURRENT, mContext.getString(R.string.current_info), valueInt);
    }

    @Override
    public String getResult() {
        if (isRead) {
            return info;
        } else {
            return String.format("%s : %s", Config.CURRENT, sourceData);
        }
    }
}
